﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DB_NH.DB_Map.StampApprove
{
    using NHibernate;
    using NHibernate.Mapping.ByCode;
    using NHibernate.Mapping.ByCode.Conformist;

    using DB_NH.DB_Model.StampApprove;

    public class map_StampApproveFlowEvaluationType : EntityMapping<StampApproveFlowEvaluationType>
    {
        public map_StampApproveFlowEvaluationType()
        {
            Property(x => x.ItemDescribe, map =>
            {
                map.Length(800000);
            });

            Property(x => x.ItemName, map =>
            {
                map.Length(200);
            });

            Property(x => x.ItemValue, map =>
            {

            }); 
            
            Property(x => x.ItemInQuality, map =>
            {

            });

            Property(x => x.OrderFlag, map =>
            {

            });

            Bag(x => x.EvaluationDetails, map =>
            {
                map.Key(keyMapper => keyMapper.Column("TypeId"));
            }, rel => rel.OneToMany());
        }
    }
}
